package cn.wolfcode.mapper;

import cn.wolfcode.domain.Department;
import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Employee record);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    int updateByPrimaryKey(Employee record);

    List<Employee> listPage(QueryObject queryObject);

    int count();

    //批量删除
    int  deleteInBatches(Long[] ids);

    Employee check(@Param("username") String username, @Param("password") String password);


    Employee selectByUsername(String username);

    void updateStatus(@Param("status") int status, @Param("id") Long id);


}